$(function() {
    $( ".idBidProductDetail" ).live('click', function() {
        var detailModuls = $( this ).parent().next(".bid_detail_modules");
        if(detailModuls.is(":hidden")) {
            detailModuls.slideDown();
            $( this ).addClass("up");
        } else {
            detailModuls.slideUp();
            $( this ).removeClass("up");
        }
        return false;
    });

});
//提交响应信息
function doReply(flag){
	if(toAccountSecond <= 0){
		showMsg(getLanMsg("0ec22214-000091"));
		return;
	}
	var strMgs1 = getLanMsg("0ec22214-000020");
	var strMgs2 = getLanMsg("0ec22214-000021");
	if(toAccountSecond <= 0){
		showMsg(strMgs1);
		return;
	}
	if(isClientCa == "true"){
		//证书SN
		var strSn = getSN(strUserCode);
		if(strSn == null || strSn == ""){
			showMsg(strMgs2);
			return;
		}
		document.replyform.casn.value = strSn;
		//方案主键|发布类单据主键|供应商对应用户主键
		var strSignData = headPk + "|" + strUserId;
		//签名
		document.replyform.signature.value = signmessage(strSignData,strUserCode);
	}
	document.replyform.action = ebvpContext + "/sourcing/biddingprojlist/confirmtplt?flag="+flag;
	document.replyform.submit();
}

//提交响应信息
var showMsg = function(msg){
	document.getElementById('show_msg').innerHTML = msg;
}